Vercel
API ReferenceMessages

Stop Message

Stops an in-flight assistant message generation. The agent aborts at the next safe point and the message is marked finished.

POST/v2/chats/{chatId}/messages/{messageId}/stop

Usage

TypeScript Example
import { v0 } from 'v0-sdk'const result = await v0.messages.stop({  chatId: 'chat_abc123',  messageId: 'msg_xyz789',})console.log(result)

API Signature

Request

Path Parameters

chatId: string

The unique identifier of the chat.

messageId: string

The unique identifier of the assistant message to stop.

Response

success: 'true'

Always true when the stop signal was successfully sent.

On this page